package com.nowcoder.community.service;

import com.nowcoder.community.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nowcoder.community.util.CommunityConstant;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 朱哥
 * @since 2025-02-27
 */
public interface ICommentService extends IService<Comment>, CommunityConstant {

    List<Comment> findCommentsByEntity(int entityType, Integer entityId, int offset, int limit);

    int findCommentCount(int entityTypeComment, Integer entityId);

    int addComment(Comment comment);
}
